import "./App.css";
import React, { useState } from "react";
import List from "./List";
import Header from "./Header";
import Search from "./Search";
import Video from "./Search/Video";

export default function App() {
  const [isSearch, setSearch] = useState(false);
  return (
    <div>
      <Header />
      <Search setSearch={setSearch} />
      {isSearch ? <Video /> : <List />}
    </div>
  );
}
